<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title></title>
    <script src="../js/jquery.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/viewer.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/viewer.min.css"/>
    <style>
        body {
            background-color: #404040;
        }

        #app {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
<div id="app">
    <img id="image"  style="display: none">
</div>
</body>

</html>
<script>
    $(function () {
        $("#image").attr("src", getQueryString("file"));
        var image = new Viewer(document.getElementById('image'),{
            url: 'data-original',
            button:false,
            navbar:false,
            backdrop: false
        });
        document.getElementById('image').click();
    })
</script>